Returns the String passed to it with all alphabetic characters in Titlecase.
Syntax |
|---|
|
result = Titlecase( value ) |
|
result = stringVariable.Titlecase( ) |
Parameters |
||
|---|---|---|
|
value |
The original string. |
|
Return Value |
||
|---|---|---|
|
Result |
A copy of the original string with all characters converted to their titlecase equivalent. |
|
Notes
Converts all characters in a String to lowercase characters and then converts the first character of each word to uppercase. Numbers are not affected.
Examples
The example below converts the values passed to Titlecase
Dim s As String
s=Titlecase("tHe Quick fOX") //returns "The Quick Fox"
s=Titlecase("THE LAZY DOG") //returns "The Lazy Dog"
s=Titlecase("tHe Quick fOX") //returns "The Quick Fox"
s=Titlecase("THE LAZY DOG") //returns "The Lazy Dog"
.